import { TypeOf, object, string } from "zod";

export const boardSchema = object({
  body: object({
    title: string({
      required_error: "Title is required",
    }),
  }),
});
export const updateBoardSchema = object({
  body: object({
    title: string(),
  }).partial(),
});

export type BoardSchema = TypeOf<typeof boardSchema>["body"];
export type UpdateBoardSchema = TypeOf<typeof updateBoardSchema>["body"];
